<%@ page contentType="text/html; charset=UTF-8" %>
<%@ include file="/WEB-INF/taglib/jstl.jsp" %>

<c:set var="isRevise" value="${false}"/>
<c:set var="styleRevise" value="" />
<c:if test="${not empty cdTpInfo}">
	<c:set var="isRevise" value="${true}"/>
	<c:set var="styleRevise" value="style='background-color:#E3E3E3;' readonly='readonly'" />
</c:if>
<div style="margin:2px 2px 2px 2px;">
	<form id="frmCdTpReg">
		<table class="left-table">
		<tr>
			<td class="cdTpTitleTd">아이디</td>
			<td class="cdTpContsTd"><input type="text" id="cdTpId" name="cdTpId" value="${cdTpInfo.cdTpId}" ${styleRevise} /></td>
		</tr>
		<tr>
			<td class="cdTpTitleTd">타입 명칭</td>
			<td class="cdTpContsTd"><input type="text" id="cdTpAlias" name="cdTpAlias" value="${cdTpInfo.cdTpAlias}" /></td>
		</tr>
		<tr>
			<td class="cdTpTitleTd"><p>코드 생성 규칙</p><p>(Optional)</p></td>
			<td class="cdTpContsTd" style="height:44px;">
				<p style="padding-bottom:2px;">Regular Expression 을 준수 합니다.</p>
				<p><input type="text" id="cdTpRegExpr" name="cdTpRegExpr" size="59" value="${cdTpInfo.cdTpRegExpr}" /></p>
			</td>
		</tr>
		<tr>
			<td class="cdTpTitleTd" style="height:86px;">설명</td>
			<td class="cdTpContsTd">
				<textarea id="cdTpDesc" name="cdTpDesc" style="width:95%; height:80px; resize:none;">${cdTpInfo.cdTpDesc}</textarea>
			</td>
		</tr>
		</table>
	</form>
</div>
<div class="fnBtnsDiv">
	<c:choose>
	<c:when test="${isRevise}"><input type="button" id="jqwFormReviseSaveBtn" value="수정" /></c:when>
	<c:otherwise><input type="button" id="jqwFormSaveBtn" value="저장" /></c:otherwise>
	</c:choose>

	<input type="button" id="jqwCloseBtn" value="닫기" />
</div>

<script type="text/javascript" src="/resources/js/views/template/system/codeType/_regForm.js"></script>
<script type="text/javascript" src="/resources/js/views/template/system/codeType/_regFormValid.js"></script>